package cn.ym.ymcc.feign;

import cn.ym.ymcc.domain.Login;
import cn.ym.ymcc.fallback.LoginServerFeignFallback;
import cn.ym.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(name = "service-uaa",fallbackFactory = LoginServerFeignFallback.class)
public interface LoginServerFeign {
    @PostMapping(value="/login/save")
    public JSONResult saveOrUpdate(@RequestBody Login login);
}
